package school30.io;

/**
 * Abstract class for reading files
 * @author asamarin97
 */
public abstract class FileReader {
    /**
     * Read bytes from file
     * @param b - byte array
     * @param numbytes - bytes to be read
     * @return number of read bytes (0 in case of EOF)
     */
    public abstract long read(byte[] b, long numbytes);
    /**
     * Returns size of the file in bytes
     * @return size of te file
     */
    public abstract long size();
    /**
     * Closes connection
     */
    public abstract void close();
}
